package com.example.notepad

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity

class ClockInActivity : AppCompatActivity() {
    private var btnViewGoals: Button? = null
    private val goals = mutableListOf<String>() // 用于存储多个目标

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_clock_in)

        // 初始化视图元素
        btnViewGoals = findViewById(R.id.btnViewGoals)

        // 查看目标按钮的点击事件
        btnViewGoals?.setOnClickListener {
            val intent = Intent(this, GoalListActivity::class.java)
            intent.putStringArrayListExtra("goals", ArrayList(goals)) // 传递目标列表
            startActivity(intent)
        }
    }

    override fun onResume() {
        super.onResume()
    }
}